"""
WinFrame.py

Created by Ryan Walters on 09/25/2008.
2 hours before the demo.

$Id: WinFrame.py 326 2008-10-17 02:23:55Z malerba89 $
"""

import sys
import string
import os
from Tkinter import *

class WinFrame(Frame):
    """a simple class to show the winner of the game"""

    def __init__(self,master,doneHandler,**kv):
        """constructor"""
        Frame.__init__(self,master,kv)
        winvar = doneHandler()
        if winvar is 1:
            self.text = "Game over! The codebreaker has won!"
        else:
            self.text = "Game over! The codemaker has won!"
        self.thinkingLabel = Label(self, text=self.text, height=2, width=40)

        self.thinkingLabel.grid(row=0, column=0)
